<?php $this->header(); ?>
<div class="wrap">
    <div class="nav">
        <ul class="cc">
            <li class="current"><a href="/?g=Admin&m=<?php echo MODULE; ?>&a=index">会员列表</a></li>
        </ul>
    </div>
    <div class="h_a">搜索用户</div>
    <div class="search_type cc mb10">
        <form action="/?g=Admin&m=<?php echo MODULE; ?>&a=search" method="POST">
            <input name="clear" type="hidden" value="do" />
            <label>用户组：</label>
            <select name="user_group_id" class="mr10" >
                <option value="-1" >不限制</option>
                <?php echo $group; ?>
            </select>
            <label>用户ID：</label><input name="uid" type="number" class="input length_1 mr10" value="<?php echo $uid; ?>">
            <label>用户名包含：</label><input name="nickname" type="text" class="input length_2 mr10" value="<?php echo $nickname; ?>">
            <button type="submit" class="btn">搜索</button>
        </form>
    </div>
    <div class="mb10"><a class="btn" href="/?g=Admin&m=<?php echo MODULE; ?>&a=add" title="添加内容" role="button"><span class="add"></span>添加用户</a></div>

    <?php if (!empty($list)): ?>
        <div class="table_list">
            <table width="100%">
                <thead>
                    <tr>
                        <td>UID</td>
                        <td>账号</td>
                        <td>名称</td>
                        <td>邮箱地址</td>
                        <td>用户组</td>
                        <td>状态</td>
                        <td>操作</td>
                    </tr>
                </thead>
                <?php foreach ($list as $key => $value): ?>
                    <tr>
                        <td><?php echo $value['uid']; ?></td>
                        <td><?php echo $value['account']; ?></td>
                        <td><?php echo $value['nickname']; ?></td>
                        <td><?php echo $value['mail']; ?></td>
                        <td><?php echo $value['name']; ?></td>
                        <td><?php echo $func->status($value['status']); ?></td>
                        <td>
                            <a href="<?php echo '/?g=Admin&m=' . MODULE . '&a=edit&id=' . $value['uid']; ?>" class="btn btn_submit J_ajax_submit_btn" >编辑</a>
                            <a href="<?php echo '/?g=Admin&m=' . MODULE . '&a=delete&id=' . $value['uid']; ?>" class="btn btn_submit J_ajax_submit_btn" onclick="return deleteWarning(this)">删除</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
        <?php echo $page; ?>
    <?php else: ?>
        <div class="not_content_mini"><i></i>啊哦，没有符合条件的用户！</div>
            <?php endif; ?>


</div>
<?php $this->footer(); ?>